Version

ShowSeparator(FrameworkElement,Point,Type,Object[]) Method

Creates a new instance of separator and attach it to the System.Windows.DependencyObject object and shows the separator. If System.Windows.DependencyObject object has already separator attached to it then this separator will be reused.
Syntax
'Declaration
 
Public Overloads Shared Function ShowSeparator( _
   ByVal parentControl As FrameworkElement, _
   ByVal mousePosition As Point, _
   ByVal separatorType As Type, _
   ByVal ParamArray constructorParameters() As Object _
) As IItemSeparator
public static IItemSeparator ShowSeparator( 
   FrameworkElement parentControl,
   Point mousePosition,
   Type separatorType,
   params object[] constructorParameters
)

Parameters

parentControl
System.Windows.DependencyObject where IItemSeparator will be displayed.
mousePosition
System.Windows.Point on which depends where separator is displayed.
separatorType
Type of separator that is creating.
constructorParameters
Constructor parameters that separator expects.

Return Value

New created instance of IItemSeparator or the instance that is already previously attached.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also